<!-- internationalisation -->
{% load i18n %}
	{{ form.media }}
	<script>
		$(function()
		{
			$('#btn_save').button(
		    {
				text: true,
		        icons:  {
		                    primary: 'ui-icon-disk'
		                }
		    });
		    $('#add_commande').button(
		    {
				text: true,
		        icons:  {
		                    primary: 'ui-icon-plus',
		               },
		        color: #F78F07,
		    });
		});
	</script>
    <div>
        <form action="{{ url }}" method="post" {% block filetag %}{% endblock %}>        	
            {% csrf_token %}
            <table class="ui-widget shadowblack table_asgard">
					<tr>
						<th class="ui-widget-header ui-corner-tl" style="text-align: left;vertical-align: middle;">{{form.TE.label_tag}} :</th>
						<td class="ui-widget-content ui-corner-tr">{{form.TE}}</td>
					</tr>
					<tr>
						<th class="ui-widget-header ui-corner-tl" style="text-align: left;vertical-align: middle;">{{form.quantite.label_tag}} :</th>
						<td class="ui-widget-content ui-corner-tr">{{form.quantite}}</td>
					</tr>
					<tr>
						<th class="ui-widget-header ui-corner-tl" style="text-align: left;vertical-align: middle;">{{form.prix.label_tag}} :</th>
						<td class="ui-widget-content ui-corner-tr">{{form.prix}}</td>
					</tr>
					<tr>
						<th class="ui-widget-header ui-corner-tl" style="text-align: left;vertical-align: middle;">{{form.commande.label_tag}} :</th>
						<td class="ui-widget-content ui-corner-tr">
							{{form.commande}}
							<a href="javascript: opendialog('#dialog2','/poudres/addcommande/','{{titre}}')"> <img width="20" height="20" src="/static/bouton/add.jpeg"/> </a> 
						</td>
					</tr>
					<tr>
						<th class="ui-widget-header ui-corner-tl" style="text-align: left;vertical-align: middle;">{{form.commentaires.label_tag}} :</th>
						<td class="ui-widget-content ui-corner-tr">{{form.commentaires}}</td>
					</tr>
				{% for hidden in form.hidden_fields %}
			    	{{ hidden }}
			    {% endfor %}
                <tr>
                    <td class="ui-widget-content ui-corner-bottom" style="padding: 15px; text-align: center;background: none repeat scroll 0 0 black;" colspan="2">
						<button class="button" type= "submit" id="btn_save">
							Tạo bột
						</button>
                    </td>
                </tr>
            </table>
        </form>
    </div>